package com.huanxing.cloud.upms.api.feign;

import com.huanxing.cloud.common.core.constant.SecurityConstants;
import com.huanxing.cloud.common.core.constant.ServiceNameConstants;
import com.huanxing.cloud.common.core.util.Result;
import com.huanxing.cloud.upms.api.entity.SysLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 系统操作日志
 *
 * @author: lijx
 * @date: 2023/6/26 11:01
 **/
@FeignClient(contextId = "remoteSysLogService", value = ServiceNameConstants.UMPS_SERVICE)
public interface RemoteSysLogService {

	/**
	 * 保存系统操作日志
	 * @param sysLog
	 * @author lijx
	 * @date 2022/6/28
	 * @return: com.huanxing.cloud.common.core.util.Result
	 */
	@PostMapping("/syslog/inner/save")
	Result<Boolean> saveLog(@RequestBody SysLog sysLog, @RequestHeader(SecurityConstants.SOURCE) String source);

}
